﻿namespace KinonekoSoftware.CodariaDB.Documents.DataParts.Modules
{
    public sealed class Block_Switch : ModuleBlock
    {
        public static Block_Switch CreateInstance()
        {
            return new Block_Switch
            {
                Id          = ID.Get(),
                Title       = "开关设定组",
                Description = "用来表示人物性格、能力等所使用的设定组。",
                Items = new List<Element_Switch>
                {
                    new Element_Switch { Id = ID.Get(), Title = "善良" },
                    new Element_Switch { Id = ID.Get(), Title = "忍耐" },
                    new Element_Switch { Id = ID.Get(), Title = "和善" },
                    new Element_Switch { Id = ID.Get(), Title = "容易沟通" },
                    new Element_Switch { Id = ID.Get(), Title = "大度" },
                },
            };
        }
        public required List<Element_Switch> Items { get; init; }


        public override ModuleBlock Clone() => new Block_Switch
        {
            Id          = Id,
            Title       = Title,
            Description = Description,
            Items       = Items.Select(x => (Element_Switch)x.Clone()).ToList(),
        };
    }
}